﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SeguradoraIA.Framework.Business
{
    public static class AggregationHelper
    {
        public static IEnumerable<T> GetElementsJustExistsFirstList<T>(IEnumerable<T> list, IEnumerable<T> intersectionResults, Func<T, bool> predicate)
        {
            return from element in list
                   where !intersectionResults.Any(predicate)
                   select element;
        }
    }
}
